{% extends "layout.html" %}
{% block center %}
    <div title="DataGrid" data-options="region:'center',fit:true,border:true,noheader:true">
    <table class="easyui-datagrid" data-options="fit:true,fitColumns:true,border:true" rownumbers="true" pagination="true">
        <thead>
            <tr>
                <th data-options="field:'id'">ID</th>
                <th data-options="field:'user'">帐号</th>
                <th data-options="field:'name'">姓名</th>
            </tr>
        </thead>
        <tbody>
        {% for user in users %}
            <tr>
                <td>{{ user.u_id }}</td>
                <td>{{ user.u_user }}</td>
                <td>{{ user.u_name }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}